﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using EBA.Localization;

namespace EBA.Framework
{
    /// <summary>
    /// 描述在指定的<see cref="BundleConfigurationElement"/>节点中，未配置对应的上下文名称不合法。
    /// </summary>
    [Serializable]
    public class InvalidBundleContextNameException : Exception
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public InvalidBundleContextNameException() { }
        /// <summary>
        /// 构造函数
        /// </summary>
        public InvalidBundleContextNameException(string bundleId,string contextName) : base("The bundle[{0}]'s context[{1}] is invalid.".T(bundleId,contextName)) { }
        /// <summary>
        /// 构造函数
        /// </summary>
        public InvalidBundleContextNameException(string message, Exception inner) : base(message, inner) { }
        /// <summary>
        /// 构造函数
        /// </summary>
        protected InvalidBundleContextNameException(
          System.Runtime.Serialization.SerializationInfo info,
          System.Runtime.Serialization.StreamingContext context)
            : base(info, context) { }
    }
}
